#include<stdio.h>
void swap(int* a, int* b)
{
	
		int temp = *a;
	*a =*b;
	*b = temp;
}
void yqg(int* p,int len)
{
	for (int i = 0; i <len - 1; i++)
	{
		for (int j = 0; j < len- 1 - i; j++)
		{
			if (p[j] > p[j + 1])
			{
				swap(&p[j], &p[j + 1]);
			}
		}
	}
}
int main(void)
{
	int a[6] = { 1,6,5,9,10,3 };
	yqg(a, sizeof(a) / sizeof(int));
	for (int i = 0; i <sizeof(a)/sizeof(int); i++)
		printf("%d\n", a[i]);
	return 0;
}1